package com.igeek.handler;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class GobalExceptionHandle {

    @ExceptionHandler
    public String handle(Exception e){
        e.printStackTrace();
        return "error";
    }
}
